#!/bin/bash

assert-equal () {
    diff -q <("${ANGELIX_RUN:-eval}" $1) <(echo -ne "$2") > /dev/null
}

case "$1" in
    1)
        assert-equal "./test 1 2" '1\n'
        ;;
    2)
        assert-equal "./test 2 2" '0\n'
        ;;
    3)
        assert-equal "./test 2 1" '0\n'
        ;;
esac
